<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script>
		var myIterable = {};
		myIterable[Symbol.iterator] = function* () {
			yield 1;
			yield 2;
			yield 3;
		}

		var arr = [...myIterable];
		console.log(arr);
	</script>
</head>
<body>
	
</body>
</html>